<?php
/**
 * FileCommodityPhoto.php
 * Created by PhpStorm.
 * User: 江小波
 * Date: 2019/05/11
 * Time: 15:32
 */
namespace app\admin\controller;

class FileCommodityPhoto extends File
{
    protected function getFormName()
    {
        return 'image';
    }
    protected function getUploadChildDir()
    {
        return 'goods_images'.DS;
    }
    protected function processResult($result)
    {
        if($result['code'] == 200)
        {
            // 请求接口保存数据
        }
        return $result;
    }
}